home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / communication / internet / amitcp3.0b / src.lha / src / amitcp / sys / domain.h next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  3.2 KB  |  87 lines

  1. /*
  2.  * $Id: domain.h,v 1.6 1993/06/04 11:16:15 jraja Exp $
  3.  *
  4.  * Copyright (c) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  5.  *                    Helsinki University of Technology, Finland.
  6.  *                    All rights reserved.
  7.  *
  8.  * HISTORY
  9.  * $Log: domain.h,v $
  10.  * Revision 1.6  1993/06/04  11:16:15  jraja
  11.  * Fixes for first public release.
  12.  *
  13.  * Revision 1.5  1993/05/17  01:02:04  ppessi
  14.  * Changed RCS version
  15.  *
  16.  * Revision 1.4  1993/04/11  22:23:15  jraja
  17.  * Changed ellipses to prototypes.
  18.  *
  19.  * Revision 1.3  93/03/05  03:29:15  03:29:15  ppessi (Pekka Pessi)
  20.  * Compiles with SASC. Initial test version.
  21.  * 
  22.  * Revision 1.2  93/03/03  20:00:46  20:00:46  jraja (Jarno Tapio Rajahalme)
  23.  * Cleanup. Moved definition of 'domains' to kern/uipc_domain.c.
  24.  * 
  25.  * Revision 1.1  92/11/20  15:41:56  15:41:56  jraja (Jarno Tapio Rajahalme)
  26.  * Initial revision
  27.  * 
  28.  *
  29.  */
  30.  
  31. /*
  32.  * Copyright (c) 1982, 1986 Regents of the University of California.
  33.  * All rights reserved.
  34.  *
  35.  * Redistribution and use in source and binary forms, with or without
  36.  * modification, are permitted provided that the following conditions
  37.  * are met:
  38.  * 1. Redistributions of source code must retain the above copyright
  39.  *    notice, this list of conditions and the following disclaimer.
  40.  * 2. Redistributions in binary form must reproduce the above copyright
  41.  *    notice, this list of conditions and the following disclaimer in the
  42.  *    documentation and/or other materials provided with the distribution.
  43.  * 3. All advertising materials mentioning features or use of this software
  44.  *    must display the following acknowledgement:
  45.  *    This product includes software developed by the University of
  46.  *    California, Berkeley and its contributors.
  47.  * 4. Neither the name of the University nor the names of its contributors
  48.  *    may be used to endorse or promote products derived from this software
  49.  *    without specific prior written permission.
  50.  *
  51.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  52.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  53.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  54.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  55.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  56.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  57.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  58.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  59.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  60.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  61.  * SUCH DAMAGE.
  62.  *
  63.  *    @(#)domain.h    7.4 (Berkeley) 6/28/90
  64.  */
  65.  
  66. #ifndef SYS_DOMAIN_H
  67. #define SYS_DOMAIN_H
  68.  
  69. /*
  70.  * Structure per communications domain.
  71.  */
  72. struct    domain {
  73.     int    dom_family;        /* AF_xxx */
  74.     char    *dom_name;
  75.     void    (*dom_init)(void);    /* initialize domain data structures */
  76.     int    (*dom_externalize)(struct mbuf *); /* externalize access rights */
  77.     int    (*dom_dispose)(struct mbuf *);    /* dispose of internalized rights */
  78.     struct    protosw *dom_protosw, *dom_protoswNPROTOSW;
  79.     struct    domain *dom_next;
  80. };
  81.  
  82. #ifdef KERNEL
  83. extern struct    domain *domains;
  84. #endif
  85.  
  86. #endif /* !SYS_DOMAIN_H */
  87.